class RolesController < ApplicationController
  def index
    @roles = Role.all
    @role = Role.new
  end

  def create
    role = Role.new(params[:role])
    role.save
    redirect_to roles_url
  end

  def destroy
    @role = Role.find(params[:id])
    @role.destroy
    redirect_to roles_url
  end

end
